package utils

import (
	"strconv"
)

func FormatStringLength(str string, formatLength int) string {
	return FormatNumAboutLength(len([]byte(str)), formatLength)
}

func FormatNumAboutLength(num int, formatLength int) string {
	strLen := strconv.Itoa(num)
	for len(strLen) < formatLength {
		strLen = "0" + strLen
	}
	return strLen
}
